<template>
  <!-- 这是我的页面头部共用组件 -->
  <div class="mypage">
    <div class="top">
      <Head mes="0" rig="el-icon-setting" title="个人中心" />
      <div class="top_content">
        <ul>
          <li>
            <div></div>
          </li>
          <li><span>GallyHjffa</span><span class="el-icon-sugar"></span></li>
          <li>"热爱旅行,热爱生活"</li>
        </ul>
      </div>
    </div>
    <div class="top_bottom">
      <div class="content_top">
        <ul>
          <li>关注:<span>50</span></li>
          |
          <li>粉丝:<span>1433</span></li>
          |
          <li>积分:<span>2077</span></li>
        </ul>
      </div>
      <div class="content_btn">
        <router-link to="/mypage" tag="div" exact>我的足迹</router-link>
        <router-link to="/mypinglun" tag="div">我的评论</router-link>
        <router-link to="/myxiaoxi" tag="div">我的消息</router-link>
      </div>
    </div>
  </div>
</template>

<script>
import Head from "../Head.vue";
export default {
  name: "Mypage",
  components: {
    Head,
  },
};
</script>
<style scoped lang="scss">
.mypage {
  box-shadow: 0px 2px 1px 1px rgba(128, 128, 128, 0.39);
}
.top {
  width: 100%;
  background-image: url("../../assets/mypageimg/c.jpg");
  background-size: 100% 100%;
  > .top_content {
    margin-top: 26px;
    > ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      > li {
        margin-bottom: 5px;
      }
      > li:nth-of-type(1) {
        > div {
          width: 75px;
          height: 75px;
          background-color: rgba(255, 255, 0, 0.904);
          border-radius: 50%;
          > img {
            width: 75px;
            height: 75px;
            border-radius: 50%;
          }
        }
      }
      > li:nth-of-type(2) {
        > span {
          margin-right: 5px;
          font-size: 22px;
          color: white;
          font-weight: bold;
          &:nth-of-type(2) {
            color: rgb(78, 243, 13);
          }
        }
      }
      >li:nth-of-type(3){
        color: white;
      }
    }
  }
}
.top_bottom {
  height: 105px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  > .content_top {
    > ul {
      list-style: none;
      display: flex;
      justify-content: center;
      align-items: center;
      > li {
        margin-left: 5px;
        margin-right: 5px;
      }
    }
  }
  > .content_btn {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    > div {
      cursor: pointer;

      &.router-link-exact-active {
        background-color: #679dce;
        font-weight: bold;
        color: white;
      }
      &:nth-of-type(1) {
        width: 100px;
        height: 30px;
        border: 1px solid gray;
        border-radius: 5px;
        text-align: center;
        line-height: 30px;
      }
      &:nth-of-type(2) {
        width: 100px;
        height: 30px;
        border: 1px solid gray;
        border-radius: 5px;
        text-align: center;
        line-height: 30px;
      }
      &:nth-of-type(3) {
        width: 100px;
        height: 30px;
        border: 1px solid gray;
        border-radius: 5px;
        text-align: center;
        line-height: 30px;
      }
    }
  }
}
</style>
